import request from '@/utils/request'

export function checkRankPraise(params) {
  return request({
    url: process.env.RANK_API + '/rank/praise/checkPraise',
    method: 'post',
    data: params
  })
}

export function getRankPraiseCount(params) {
  return request({
    url: process.env.RANK_API + '/rank/praise/getPraiseCount',
    method: 'post',
    data: params
  })
}

export function getRankPraiseUserList(params) {
  return request({
    url: process.env.RANK_API + '/rank/praise/getPraiseUserList',
    method: 'post',
    data: params
  })
}


export function addRankPraise(params) {
  return request({
    url: process.env.RANK_API + '/rank/praise/praise',
    method: 'post',
    data: params
  })
}

export function cancelRankPraise(params) {
  return request({
    url: process.env.RANK_API + '/rank/praise/cancelPraise',
    method: 'post',
    data: params
  })
}

export function addRankTread(params) {
  return request({
    url: process.env.RANK_API + '/rank/praise/tread',
    method: 'post',
    data: params
  })
}

export function cancelRankTread(params) {
  return request({
    url: process.env.RANK_API + '/rank/praise/cancelTread',
    method: 'post',
    data: params
  })
}



export function checkCommunityPraise(params) {
  return request({
    url: process.env.COMMUNITY_API + '/community/praise/checkPraise',
    method: 'post',
    data: params
  })
}

export function getCommunityPraiseCount(params) {
  return request({
    url: process.env.COMMUNITY_API + '/community/praise/getPraiseCount',
    method: 'post',
    data: params
  })
}

export function getCommunityPraiseUserList(params) {
  return request({
    url: process.env.COMMUNITY_API + '/community/praise/getPraiseUserList',
    method: 'post',
    data: params
  })
}


export function addCommunityPraise(params) {
  return request({
    url: process.env.COMMUNITY_API + '/community/praise/praise',
    method: 'post',
    data: params
  })
}

export function cancelCommunityPraise(params) {
  return request({
    url: process.env.COMMUNITY_API + '/community/praise/cancelPraise',
    method: 'post',
    data: params
  })
}

export function addCommunityTread(params) {
  return request({
    url: process.env.COMMUNITY_API + '/community/praise/tread',
    method: 'post',
    data: params
  })
}

export function cancelCommunityTread(params) {
  return request({
    url: process.env.COMMUNITY_API + '/community/praise/cancelTread',
    method: 'post',
    data: params
  })
}
